﻿@using Coralcode.Adapter.StatVisit.Entity.Domains
@using Coralcode.Utils.Basic
@using CoralNode.MvcClient.Helper
@{
    ViewBag.Title = "受访分析-受访明细";
    ViewBag.PageModule = "interview";
    ViewBag.CurrentPageUrl = "/m/statistic/interviewdetail?";
}
@Html.IncludePage("CoralAdmin/statistic", "_Left")
<!--content-->
<div id="pbody">
    <div class="extra">
        @Html.IncludePage("CoralAdmin/statistic", "DateSelection")
        <div class="main-box mt_2 mb_2">
            <div class="tab-visit clearfix">
                <a href="/m/statistic/interview?dateStart=@ViewBag.DateStart&dateEnd=@ViewBag.DateEnd&dateselect=@ViewBag.dateselecte">受访排行榜</a>
                <a href="/m/statistic/interviewentrance?dateStart=@ViewBag.DateStart&dateEnd=@ViewBag.DateEnd&dateselect=@ViewBag.dateselecte">入口排行榜</a>
                <a href="/m/statistic/interviewexit?dateStart=@ViewBag.DateStart&dateEnd=@ViewBag.DateEnd&dateselect=@ViewBag.dateselecte">跳出排行榜</a>
                <a class="current" href="/m/statistic/interviewdetail?dateStart=@ViewBag.DateStart&dateEnd=@ViewBag.DateEnd&dateselect=@ViewBag.dateselecte">受访明细</a>
            </div>
            <div class="clearfix">
                <div class="table_visit">
                    <table width="100%" style="margin-top:2px;">
                        <thead>
                            <tr class="t_bg">
                                <td width="10"></td>
                                <td>受访页面</td>
                                <td></td>
                                <td align="right">浏览次数（PV）</td>
                                <td align="right">独立访客(UV)</td>
                                <td align="right">IP</td>
                                <td align="right">人均浏览页数</td>
                                <td align="right">输出PV</td>
                                <td align="right">平均页面停留时间</td>
                                <td></td>
                            </tr>
                        </thead>
                        <tbody>
                            <tr class="count">
                                <td></td>
                                <td>全站总计</td>
                                <td></td>
                                <td align="right">@Model.PageView</td>
                                <td align="right">@Model.UniqueVisitor</td>
                                <td align="right">@Model.IpCount</td>
                                <td align="right">@MathUtil.Round(Model.PageViewAverage)</td>
                                <td align="right">-</td>
                                <td align="right">@MathUtil.Round(Model.TimeOnSiteAverage)秒</td>
                                <td></td>
                            </tr>
                            @foreach (StatReportDomain report in ViewBag.ModuleSummaryReports) {
                                <tr @if(report.Equals(ViewBag.LastModuleSummaryReport)){@String.Format("class=last")}>
                                    <td></td>
                                    <td><a class="color_green">@report.StatName</a></td>
                                    <td align="center"><a class="ml_1-5"><i class="ico ico_visit_time"></i></a></td>
                                    <td align="right">@report.PageView</td>
                                    <td align="right">@report.UniqueVisitor</td>
                                    <td align="right">@report.IpCount</td>
                                    <td align="right">@MathUtil.Round(report.PageViewAverage)</td>
                                    <td align="right">@report.OutputPageView</td>
                                    <td align="right">@MathUtil.Round(report.TimeOnSiteAverage)秒</td>    
                                    <td></td>
                                </tr>
                            }
                        </tbody>
                    </table>
                </div>
            </div> 
        </div>
    </div>
</div>